package com.matt.repository.statictics;

import com.matt.domain.statistics.StatRenewalClientele;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * *******************************
 * Created by Ron.
 * form com.matt
 * on 2018/7/20
 * *******************************
 */
public interface StatRenewalClienteleRepository extends JpaRepository<StatRenewalClientele, String> {
    StatRenewalClientele findByClienteleIdAndContractIdAndType(String clienteleId, String contractId, Integer type);
    List<StatRenewalClientele> findByClienteleIdAndTypeAndIsRenewed(String clienteleId, Integer type, Boolean isRenewal);
    StatRenewalClientele findAnyByClienteleIdAndTypeAndIsRenewed(String clienteleId, Integer type, Boolean isRenewal);
}
